/*
 * @Author: shenqi-turbo 774707331@qq.com
 * @Date: 2023-06-26 15:05:20
 * @LastEditors: shenqi-turbo 774707331@qq.com
 * @LastEditTime: 2023-06-27 09:49:35
 * @FilePath: /vue-web3/vite.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite';
import { VantResolver } from 'unplugin-vue-components/resolvers';


// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    Components({
      resolvers: [VantResolver()],
    })],
  define: {
    'process.,env': process.env
  },
  alias: [
    {
      find: 'web3',
      replacement: 'web3/dist/web3.min.js',
    },
  ],
})
